package com.ruoyi.common.core.domain.entity;


import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * 检查对象对象 t_risk_basis_checkobject
 *
 * @author ruoyi
 * @date 2023-06-30
 */
public class TRiskBasisCheckobject extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    private Long parentId;

    /** 名称 */
    @Excel(name = "名称")
    private String cname;

    /** 编号 */
    @Excel(name = "编号")
    private String ccode;

    /** 编码 */
    @Excel(name = "编码")
    private String cno;

    /** 上级编码 */
    @Excel(name = "上级编码")
    private String cpno;

    private String logo;

    /** 公司id */
    @Excel(name = "公司id")
    private Long companyid;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createts;

    /** 创建人 */
    @Excel(name = "创建人")
    private Long createdby;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public void setCname(String cname)
    {
        this.cname = cname;
    }

    public String getCname()
    {
        return cname;
    }
    public void setCcode(String ccode)
    {
        this.ccode = ccode;
    }

    public String getCcode()
    {
        return ccode;
    }
    public void setCno(String cno)
    {
        this.cno = cno;
    }

    public String getCno()
    {
        return cno;
    }
    public void setCpno(String cpno)
    {
        this.cpno = cpno;
    }

    public String getCpno()
    {
        return cpno;
    }

    public String getLogo() {
        return logo;
    }

    public void setLogo(String logo) {
        this.logo = logo;
    }
    public void setCompanyid(Long companyid)
    {
        this.companyid = companyid;
    }

    public Long getCompanyid()
    {
        return companyid;
    }
    public void setCreatets(Date createts)
    {
        this.createts = createts;
    }

    public Date getCreatets()
    {
        return createts;
    }
    public void setCreatedby(Long createdby)
    {
        this.createdby = createdby;
    }

    public Long getCreatedby()
    {
        return createdby;
    }

    //非表字段
    private List<TRiskBasisCheckobject> children = new ArrayList<TRiskBasisCheckobject>();

    private Integer ischild;

    public List<TRiskBasisCheckobject> getChildren() {
        return children;
    }

    public void setChildren(List<TRiskBasisCheckobject> children) {
        this.children = children;
    }

    public Integer getIschild() {
        return ischild;
    }

    public void setIschild(Integer ischild) {
        this.ischild = ischild;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("cname", getCname())
                .append("ccode", getCcode())
                .append("cno", getCno())
                .append("cpno", getCpno())
                .append("companyid", getCompanyid())
                .append("createts", getCreatets())
                .append("createdby", getCreatedby())
                .toString();
    }
}
